// pages/cart/cart.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    carts: [
      {
        storeName: "中国店",
        storeLogoUrl: "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        coverUrl: "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        title: "洋鸡蛋 10枚 490g",
        price: 9.9,
        count: 1,
      }, {
        storeName: "西安店",
        storeLogoUrl: "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        coverUrl: "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        title: "潘茄 350-450g",
        price: 3.5,
        count: 3,
      }, {
        storeName: "杭州店",
        storeLogoUrl: "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        coverUrl: "http://n.sinaimg.cn/photo/1_img/upload/cf3881ab/799/w1000h599/20200527/c317-iufmpmn0437916.jpg",
        title: "佳农 进口香蕉 500g",
        price: 5.99,
        count: 2,
      }
    ],
    title: "猜你喜欢",
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})